package com.senyint.imsdk.packet;

import org.jivesoftware.smack.packet.Message;

public class DeliveryRecvManager{ 
    /**
     * Add a delivery receipt request to an outgoing packet.
     *
     * Only message packets may contain receipt requests as of XEP-0184,
     * therefore only allow Message as the parameter type.
     *
     * @param m Message object to add a request to
     */
    public static void addDeliveryReceiptRequest(Message m) {
        m.addExtension(new DeliveryRecvRequest());
    }
}
